<!DOCTYPE html>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> 
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"  />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="screen-orientation" content="portrait">
<title>{echo ($this->Title != '') ? $this->Title.' - ' : (ini('cplace.cnpre.enabled') ? (logic('misc')->City('name').ini('settings.tuangou_str').' - ') : '')}{ini:settings.site_name}{conf page_title}</title>
<script type="text/javascript">
var thisSiteURL = '{ini:settings.site_url}/';
var tuangou_str = '{ini:settings.tuangou_str}';
</script>
<!--{~ui('loader')->css('cp_style')}-->
<!--{~ui('loader')->css('index')}-->
<!--{~ui('loader')->js('@jquery')}-->


</head>
<body id="index">
<header class="index">
<!-- <h1 id="logo"><a gaevent="InnerLink|Click|touch/logo" href="">{ini:settings.site_name}</a></h1> -->
                    <a class="city" id="city" gaevent="InnerLink|Click|touch/city/cityBottom" href="?mod=index&code=city">{~logic('misc')->City('name')}</a>
                    <div class="brand" style="height: 100%;margin: 0 110px;text-align:center;">
                    <h1>{ini:settings.site_name}</h1> 
					</div>
                    <div id="nav">
                        <a class="account" gaevent="InnerLink|Click|touch/account" href="?mod=me">会员中心</a>
                       <!--  <a class="search" gaevent="InnerLink|Click|touch/search" href="?mod=search">搜索</a> -->
                    </div>
 </header>
  
 <!-- 搜索框 -->
<!-- <div class="searchbox cf">
			<div style="float: right;margin-right: 0px;"><input type="button" class="search-submit" onclick="front_search_request()" /></div>
			<div class="search-left" style="margin-right:50;">
				<input name="q" type="text" class="inputsearch search-box__input" id="search-txt" value="{$kw}" maxlength="26" autocomplete="off" style="color: rgb(204, 204, 204);" onkeyup="if (event.keyCode == 13) front_search_request();" />
			</div>
		</div> -->
<section class="w-index-search">

<div class="search-input-wrap">
<input type="text" name="q" class="j-search-input" id="search-txt" value="{$kw}" autocomplete="off" placeholder="请输入您想找的商品" onkeyup="if (event.keyCode == 13) front_search_request();"/>

<button type="button" class="j-search-submit" onclick="front_search_request()">搜索</button>
</div>

</section>		

<script type="text/javascript">
var front_search_base = "{echo logic('url')->create('search', array('mod'=>'search','kw' => 'xqw'))}";
function front_search_request()
{
window.location = front_search_base.replace('xqw', encodeURIComponent($('#search-txt').val()));
}
</script>
<div style="display: none;">搜索框</div> 


<!--{~logic('lunboad')->Wap_getList()}-->



<section class="widget-index-catg clearfix" >
<div class="wrap wrap8 clearfix">
<a class="item item1" href="?mod=catalog&code=ddc" >
<div class="img ddc"></div>
<div class="text">电动车</div>
</a>
<a class="item item2" href="?mod=catalog&code=kuche" >
<div class="img kuche"></div>
<div class="text">酷车</div>
</a>
<a class="item item3" href="?mod=catalog&code=zxc" >
<div class="img zxc"></div>
<div class="text">自行车</div>
</a>
<a class="item item4" href="?mod=catalog&code=tongche" >
<div class="img tongche"></div>
<div class="text">童车</div>
</a>

<a class="item item5" href="#" >
<div class="img slc"></div>
<div class="text">三轮车</div>
</a>
<a class="item item6" href="?mod=catalog&code=peijian" >
<div class="img peijian"></div>
<div class="text">配件装备</div>

<a class="item item7" href="?mod=catalog&code=ddqc" >
<div class="img ddqc"></div>
<div class="text">电动汽车</div>
</a>
<a class="item item8" href="?mod=index&code=xiuche" >
<div class="img xiuche"></div>
<div class="text">便民修车</div>
</a>

</div>
</section>
		
		

 
  <!-- 搜索框 -->




<section class="goods-list-title">
精品{TUANGOU_STR}
</section>




<div class="content" id='content'>
 	<div class="search-asslist" style="display: none">
			<ul id='search_history_ul'>
			</ul>
		</div>


<!-- 产品列表开始 -->

<div class="list_container">
 {loop $product $k $item}
          <a href="?view={$item['id']}">
            <div class="item clearfix">
                <div class="item_image">
                                                                        
                                                                        <img class="lazy" {echo 'sr'.'c="'.ini('settings.site_url').'/static/images/1x1.gif"'} data-original="{echo imager($item['imgs'][0], IMG_Small);}" style="width:220px;height:145px;"/>	
                        
                                    </div>
                <div class="information">
                    <p>
                        <b>今日{TUANGOU_STR} </b>
                     {$item['name']}
                    </p>
                    <div class="price_info">
                        {if $item['preprice']}{$item['pretext']}:{/if}<em>￥{$item['nowprice']}</em>
                       {if $item['preprice']}{TUANGOU_STR}价:<em>￥{$item['preprice']}</em>{/if}
                         {if $item['preprice']} <div class="grey">门店价:<span class="grey del">{$item['price']}元</span>
                        <span class="grey">{$item['discount']}折</span>
                       {$item['succ_buyers']}人已购买</div>{else}
                   	 门店价:<span class="grey del">{$item['price']}元</span>
                        <span class="grey">{$item['discount']}折</span>
                       <div class="grey">{$item['succ_buyers']}人已购买</div>{/if}
                    </div>
                   
                </div>
            </div>
        </a>
          {/loop} 
    </div>





 {~ui('loader')->js('@jquery.lazyload')}
<script type="text/javascript">
$("img.lazy").lazyload({effect:'fadeIn',skip_invisible:false});
</script>
 <!-- 产品列表结束 -->
 
 <div class="w-viewmore clearfix" >
<a id="j-viewmore" href="?mod=catalog" class="op-btn more" >查看全部团购</a>
<a href="javascript:scroll(0,0)"  class="op-btn btn-goup" >回到顶部</a>
</div>
 

 
 
</div>
<!--{if ( handler('cookie')->getVar('mycity') == '' )}-->
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=7srQsDLP8QRXIjMEYVkPGI6n"></script>
<script type="text/javascript">
$(document).ready(function(){
	// 百度地图API功能
	var map = new BMap.Map("allmap");
	var gc = new BMap.Geocoder();  
	var geolocation = new BMap.Geolocation();
	geolocation.getCurrentPosition(function(r){
	    if(this.getStatus() == BMAP_STATUS_SUCCESS){
	
			var pt = r.point;
			gc.getLocation(pt, function(rs){
		        var addComp = rs.addressComponents;
		        var city = addComp.city.replace("市","");        
		        $.get('?code=getLocation&city='+city+$.rnd.stamp(), function(data){
		        	$("#city").text(data);
		        });
	        //alert(addComp.province + ", " + addComp.city + ", " + addComp.district + ", " + addComp.street + ", " + addComp.streetNumber);
	    	});  
	
	    }
	    else {
	    	 $.get('?code=getLocation&nocity=1'+$.rnd.stamp(), function(data){
	         	$("#city").text(data);
	         });
	    }        
	},{enableHighAccuracy: true,timeout:5000,maximumAge:30000});
	setTimeout(function(){
		if(typeof(geolocation.getStatus())=='undefined'){
			$.get('?code=getLocation&nocity=1'+$.rnd.stamp(), function(data){
	         	$("#city").text(data);
	         });
		}
		 
		 
		},6000);
}); 
</script>
<!--{/if}-->
<!--{template "wap_footer"}-->


</body>
</html>